package com.binance.notification;

import com.binance.feign.ribbon.config.FeignRibbonClientAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.kafka.annotation.EnableKafka;

import com.binance.autojob.annotation.EnableAutotjob;
import com.binance.master.utils.IPUtils;

@EnableAutoConfiguration(
        exclude = {org.springframework.cloud.netflix.feign.ribbon.FeignRibbonClientAutoConfiguration.class})
@SpringCloudApplication
@EnableKafka
@EnableAutotjob
@EnableFeignClients(basePackages = {"com.binance.assetservice.api", "com.binance.mbxgateway.api"})
@Import(FeignRibbonClientAutoConfiguration.class)
public class Application {

    public static void main(String[] args) {
        System.setProperty("local-ip", IPUtils.getIp());
        SpringApplication.run(Application.class, args);
    }

}
